class leirenyuan{
    void crySpeak (String s){
        System.out.println(s);
    }
}
class People extend leirenyuan{
    void computerr (int a,int b){
        int c=a*b;
        System.out.println(c);
    }
    void crySpeak(string s){
        System.out.println("***"+s+"***");
    }
}
public class Example5_10{
    public static void main(String args[]){
        leirenyun monkey;
        People geng;//monkey是对象geng的上转型对象
        monkey.crySpeak("I love this game");//等同于geng.crySpeak("I love this game")
        People peaple =(People )monkey;//把上转型对象强制转化为子类的对象
        People.computer(10,10);
        
    }
}